package com.itcast.consumer.controller;

import com.itcast.common.model.dto.response.MemberResDTO;
import com.itcast.security.service.IMemberService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author itcast
 */
@RestController
@RequestMapping("/consumer/member")
@Api(tags = "用户端 - 用户信息相关接口")
public class MemberController {
    @Resource
    private IMemberService memberService;

    @GetMapping()
    @ApiOperation(value = "查询用户信息")
    public MemberResDTO getInfo() {
        return memberService.getInfo();
    }

}
